package com.wanxi.api;

public class FindIndexArr {
    public static void main(String[] args) {
        int[] arr = {2, 4, 6, 8, 9,3, 4, 2, 4, 7};
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]==3){
                System.out.println(i);
                break;
            }
        }
    }
}
